/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jheorge
 */
import java.rmi.Naming;
public class Servidor {

    public Servidor() {
        try {
            Interface i=new Implementacion();//metodo e implementacion
            Naming.rebind("rmi://localhost/Polinomios", i);
            
        } catch (Exception e) //terminacion de constructor
        {
        }
    }
    public static void main(String[] args) {
            new Servidor();
            System.out.println("Servidor Escuchando");
    }
    
}
